import React from 'react';
import {
    HashRouter,
    Switch,
    Route,
} from 'react-router-dom';
import Home from './components/Home';
import Login from './components/Login';

class Router extends React.Component{
    render(){
        return(
            <HashRouter>
                <Switch>
                    <Route path="/login" component={Login} />
                    <Route path="/" component={Home} />
                </Switch>
            </HashRouter>
        )
    }
}

export default Router;